n = int(input())

if n>100:
    s = n*50
else:
    s = n*80

print(s)